package com.ktjiaoyu.t313.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class UserController2 {

    @RequestMapping(value = "/doUser/{userId}",method = RequestMethod.GET)
    public String userGet(@PathVariable("userId")String userId){

        return "index";
    }

    @RequestMapping(value = "/doUser/{userId}",method = RequestMethod.POST)
    public String userPost(@PathVariable("userId")String userId){

        return "index";
    }

    @RequestMapping(value = "/doUser/{userId}",method = RequestMethod.DELETE)
    public String userDelete(@PathVariable("userId")String userId){

        return "index";
    }

    @RequestMapping(value = "/doUser/{userId}",method = RequestMethod.PUT)
    public String userPut(@PathVariable("userId")String userId){

        return "index";
    }

}
